<?php 

// 模糊查询用户名

require $this->website['path']['action'].'/admin/isadmin.php';

$uname = fn_post('v');

$json = array('status'=>'ok','msg'=>'ok','data'=>[]);

if($uname){
  $json['data'] = $this->website['class']['db']
                       ->table('user_admin')
                       ->field('id','uname')
                       ->where('uname like ?','%'.$uname.'%')
                       ->limit(20)
                       ->select();
}




echo json_encode($json);

